package com.yitiao.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @GetMapping("index")
    public String index() {
        return "index";
    }

    @PostMapping("/success")
    public String success() {
        return "success";
    }

    @PostMapping("/fail")
    public String fail() {
        return "fail";
    }

    @GetMapping("/user/logout")
    public String logout() {
        return "logout";
    }
}